.class public Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;
.super Ljava/lang/Object;


# static fields
.field private static arrayClassMap:Ljava/util/Map;


# instance fields
.field private arrayClass:Ljava/lang/Class;

.field private arrayHandler:Ljava/util/List;

.field private setterName:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [B

    sget-object v2, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/Byte;

    const-class v2, Ljava/lang/Byte;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [S

    sget-object v2, Ljava/lang/Short;->TYPE:Ljava/lang/Class;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/Short;

    const-class v2, Ljava/lang/Short;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [I

    sget-object v2, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/Integer;

    const-class v2, Ljava/lang/Integer;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [J

    sget-object v2, Ljava/lang/Long;->TYPE:Ljava/lang/Class;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/Long;

    const-class v2, Ljava/lang/Long;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [F

    sget-object v2, Ljava/lang/Float;->TYPE:Ljava/lang/Class;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/Float;

    const-class v2, Ljava/lang/Float;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [D

    sget-object v2, Ljava/lang/Double;->TYPE:Ljava/lang/Class;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/Double;

    const-class v2, Ljava/lang/Double;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/String;

    const-class v2, Ljava/lang/String;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [C

    sget-object v2, Ljava/lang/Character;->TYPE:Ljava/lang/Class;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/Character;

    const-class v2, Ljava/lang/Character;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Z

    sget-object v2, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/lang/Boolean;

    const-class v2, Ljava/lang/Boolean;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/math/BigDecimal;

    const-class v2, Ljava/math/BigDecimal;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    const-class v1, [Ljava/math/BigInteger;

    const-class v2, Ljava/math/BigInteger;

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/Class;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayHandler:Ljava/util/List;

    iput-object p2, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClass:Ljava/lang/Class;

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->setSetterName(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public addArrayValue(Ljava/lang/Object;)V
    .locals 1

    instance-of v0, p1, Ljava/util/List;

    if-eqz v0, :cond_0

    check-cast p1, Ljava/util/List;

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayHandler:Ljava/util/List;

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayHandler:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public getArrayClass()Ljava/lang/Class;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClass:Ljava/lang/Class;

    return-object v0
.end method

.method public getArrayHandler()Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayHandler:Ljava/util/List;

    return-object v0
.end method

.method public getSetterName()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->setterName:Ljava/lang/String;

    return-object v0
.end method

.method public processArray()Ljava/lang/Object;
    .locals 2

    sget-object v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClassMap:Ljava/util/Map;

    iget-object v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClass:Ljava/lang/Class;

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Class;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClass:Ljava/lang/Class;

    :cond_0
    iget-object v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayHandler:Ljava/util/List;

    if-nez v1, :cond_1

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_1
    iget-object v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayHandler:Ljava/util/List;

    invoke-static {v1, v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->createArray(Ljava/util/List;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    goto :goto_0
.end method

.method public setArrayClass(Ljava/lang/Class;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayClass:Ljava/lang/Class;

    return-void
.end method

.method public setArrayHandler(Ljava/util/List;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->arrayHandler:Ljava/util/List;

    return-void
.end method

.method public setSetterName(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->setterName:Ljava/lang/String;

    return-void
.end method
